-- card: 24416 from stack: in.0-2 -- bmap block id: 24929 -- flags: 0000 -- background id: 18737 -- name: fieldSizes ----- HyperTalk script ----- -- This handler stores the name of the last card. on goBack go cd "Text Fields" of stack "Intro to HyperCard 2.0" end goBack on closeCard put empty into cd fld "sampleFld" end closeCard on openCard put the rect of cd fld "sampleFld" into theRect put item 1 of theRect into theH put item 2 of theRect into theV add 2 to theV click at theH, theV type "You may type something here." end openCard -- part 1 (field) -- low flags: 00 -- high flags: 0002 -- rect: left=112 top=188 right=253 bottom=361 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: sampleFld -- part 2 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=192 top=260 right=293 bottom=276 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- -- This handler sets the rect of "sampleFld" to various sizes, -- so the user can see what they look like. on mouseUp put the rect of cd fld "sampleFld" into firstRect put firstRect into playRect repeat for 3 subtract 10 from item 1 of playRect set the rect of cd fld "sampleFld" to playRect end repeat wait 30 repeat for 3 add 10 to item 4 of playRect set the rect of cd fld "sampleFld" to playRect end repeat wait 30 repeat for 3 subtract 10 from item 2 of playRect set the rect of cd fld "sampleFld" to playRect end repeat wait 30 repeat for 3 add 10 to item 3 of playRect set the rect of cd fld "sampleFld" to playRect end repeat wait 30 set the rect of cd fld "sampleFld" to firstRect end mouseUp -- part contents for background part 1 ----- text ----- You can change the size of a text field in HyperCard at any time. Type in the field below, and then click the button to see the field size change.